#include "BankSystem.hh"
#include <iostream>

int main() {
    BankSystem bank;
    int choice;

    while (true) {
        std::cout << "\n===== Banking System =====\n";
        std::cout << "1. Register new customer\n";
        std::cout << "2. Access customer accounts\n";
        std::cout << "3. Display all bank accounts\n";
        std::cout << "4. Transaction reports\n";
        std::cout << "5. Exit\n";
        std::cout << "Please choose: ";
        std::cin >> choice;

        switch (choice) {
            case 1: {
                std::string name;
                std::cout << "Enter customer name: ";
                std::cin >> name;
                bank.registerCustomer(name);
                break;
            }
            case 2:
                bank.performTransaction();
                break;
            case 3:
                bank.displayAllAccounts();
                break;
            case 4:
                bank.showReports();
                break;
            case 5:
                return 0;
            default:
                std::cout << "Invalid choice!\n";
        }
    }
    return 0;
}
